$(function() {
    $(".nav>li").mouseover(function() {
        $(this).children(".dropdown-layer").show();
    });
    $(".nav>li").mouseout(function() {
        $(this).children(".dropdown-layer").hide();
    });
    $(".close-btn").click(function() {
        $(this).hide().siblings("img").hide();
    });
    var jptwo = document.getElementById("jptwo");
    var jpthree = document.getElementById("jpthree");
        window.onload=function(){
            if(document.cookie){
             var jpone=document.cookie.split(";")[0].split("=")[1];
             if(jpone) {
                jptwo.style.display="inline-block";
                jpthree.style.display="none";
            }}else{
                jptwo.style.display="none";
                jpthree.style.display="inline-block";
            }
            };
});